package com.shen.JUC.Funiterface;

import java.util.function.Consumer;
//Consumer<T>——消费型接口：有一个输入参数，没有返回值
public class ConsumerTest {
    public static void main(String[] args) {
        Consumer<String> consumer = (String o)->{
            System.out.println(o);
        };
        consumer.accept("abc");
    }
}
